package com.hoshiicloud.purchase.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.purchase.Po;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author campchen
 * @since 2019-05-15
 */
@Service
public interface PoService extends IService<Po> {
    IPage<Po> getPage(IPage<Po> page, QueryWrapper<Po> queryWrapper, String key);

    Po getById(Long id);

    Po getByCode(String code);

    String savePo(Po entity);

    boolean updateById(Po entity);
}
